﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BaseData.Infrastructure.DTO
{
    public class ApprovalDTO
    {
        public int ApprovalsId { get; set; }
        /// <summary>
        /// 会议预约id
        /// </summary>
        public int BookId { get; set; }
        /// <summary>
        /// 会议室名称
        /// </summary>
        public string? MeetRoomName { get; set; }
        /// <summary>
        /// 会议主题
        /// </summary>
        public string? Subject { get; set; }
        /// <summary>
        /// 会议主持人
        /// </summary>
        public int UserId { get; set; }

        public string? UserName { get; set; }
        /// <summary>
        /// 会议开始时间
        /// </summary>
        public DateTime? BeginTime { get; set; }
        /// <summary>
        /// 会议结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }
        /// <summary>
        /// 参会人数
        /// </summary>
        public int? Attendance { get; set; }
        /// <summary>
        /// 会议内容
        /// </summary>
        public string? MettingContent { get; set; }
        /// <summary>
        /// 提交时间
        /// </summary>
        public DateTime SubmissionTime { get; set; }
        /// <summary>
        /// 审批结果
        /// </summary>
        public ApprovalResult Result { get; set; }
        /// <summary>
        /// 会议地址
        /// </summary>
        /// </summary>
        public string? RoomAddressName { get; set; }
        /// <summary>
        /// 审批说明
        /// </summary>
        public string? ApprovalRemark { get; set; }
        /// <summary>
        /// 审批状态
        /// </summary>
        public ApprovalState Status { get; set; }
        public enum ApprovalState
        {
            待审批 = 0,
            已审批 = 1
        }

        public enum ApprovalResult
        {
            待审批 = 0,
            通过 = 1,
            拒绝 = 2
        }
    }
}
